Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Conversation

mrkz
Copy link
Contributor

@mrkz mrkz commented Oct 8, 2018

This commit documents how to change the OpenSSH port on Clear Linux*.

Clear Linux* enables an sshd.socket systemd unit, which listens in
port 22 by default.

This commit fixes #261

Signed-off-by: Simental Magana, Marcos marcos.simental.magana@intel.com

This commit documents how to change the OpenSSH port on Clear Linux*.

Clear Linux* enables an `sshd.socket` systemd unit, which listens in
port 22 by default.

This commit fixes #261

Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
@krisdale krisdale self-requested a review October 8, 2018 16:36
@ahkok ahkok self-requested a review October 8, 2018 18:46
@ahkok
Copy link
Contributor

ahkok commented Oct 8, 2018

Reviewed for technical content.

Copy link
Contributor

@krisdale krisdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition @mrkz ! I identified a few formatting changes. Also, I'd like to break out the instructions into a few more steps. I will commit my recommendations for your review.

# systemctl restart sshd.socket
SFTP
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update section heading to: "Enable SFTP"
Update underline to use *

|CL| enables the `sshd.socket` unit, which will listen on port 22 by default and
start the openssh service as required.

Change Default Port
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update section heading to: "Change default port" (use sentence case)
Update underline to use *

In order to change the default listen port for the OpenSSH\* service, perform
the following steps:

#. Edit the sshd.socket unit file, provide the `ListenStream` option in the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarify steps - each # should be one action/step only. Provide appropriate snippets /example commands so the reader can copy/paste.

…ion. Updated heading text for clarity.

- Update first CL reference to use CL-ATTR.
- Break out first steps in Change default port section to be one step per #.
- Update code-block command examples to use bash style. Separate the example commands from the example output.
- Remove prompt # from example commands (per guidelines).
- Minor capitalization and grammar edits.

Signed-off-by: Kristal Dale <kristal.dale@intel.com>
@krisdale
Copy link
Contributor

krisdale commented Oct 8, 2018

@mrkz - please review my commit to your branch. Your content is there, I just expanded it into a couple of additional steps, and made some reST/Sphinx syntax changes.

Signed-off-by: Kristal Dale <kristal.dale@intel.com>
@mrkz
Copy link
Contributor Author

mrkz commented Oct 8, 2018

@krisdale content remains accurate after your changes, so this looks good to me. 🎉

@mvincerx mvincerx merged commit d146ac5 into clearlinux:master Oct 9, 2018
@gvancuts
Copy link

I cannot find for the life of me this page published on the Clear Linux documentation website... can anyone give me a pointer to it?

@mvincerx
Copy link
Contributor

Hi @gvancuts. Unlike many Linux distros, Clear Linux OS ships as stateless, with a mostly empty /etc directory. For more information on this, please see: https://clearlinux.org/features/stateless.
In short, you can custom configure /etc as you like. You could create a file, sshd_config, like what's shown here: https://www.tecmint.com/change-ssh-port-in-linux/

@gvancuts
Copy link

Hi @gvancuts. Unlike many Linux distros, Clear Linux OS ships as stateless, with a mostly empty /etc directory. For more information on this, please see: https://clearlinux.org/features/stateless.
In short, you can custom configure /etc as you like. You could create a file, sshd_config, like what's shown here: https://www.tecmint.com/change-ssh-port-in-linux/

I'm aware of all this. We used to have a page on the Clear Linux documentation website that explained how to tweak the openssh-server bundle. This PR enhanced that page with additional info. However, I cannot find that page anymore, has it been removed?

@mvincerx
Copy link
Contributor

@gvancuts
Copy link

Yes, that's the one. It used to be published on the website but I now noticed you removed them on October 23rd: a155322 I found the openssh-server document quite useful actually, can we bring it back?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

document how to change default SSH server port

5 participants